cmake_minimum_required(VERSION 3.28)
project(gateServer CXX)
set(CXX_STANDARD_REQUIRED 17)

aux_source_directory(./src source_file)
aux_source_directory(./rpc  rpc_src_file)
include_directories(./include)
include_directories(./rpc)

find_package(Boost REQUIRED COMPONENTS system)
# 找grpc的包
find_package(Threads REQUIRED)
find_package(Protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)

add_executable(gateServer ${source_file} ${rpc_src_file})

target_link_libraries(gateServer Boost::system)
target_link_libraries(gateServer gRPC::grpc++ protobuf::libprotobuf gRPC::grpc++_reflection )
